package com.xatl.simulated.deal;

import com.xatl.simulated.client.MqttPublishClient;
import com.xatl.simulated.constant.MqttPropertiesUtils;
import org.eclipse.paho.client.mqttv3.IMqttClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author ufo
 * @Description TODO
 * @Date 2021/1/13 15:53
 * @Version 1.0
 */


@Component
public class deal {

    @Autowired
    MqttPropertiesUtils mqttPropertiesUtils;

    public void send(){
        MqttPublishClient.publish("DOWN/TEST",mqttPropertiesUtils.getQos(),"akjebcfewbcf");
        System.out.println("接受后有发送");

    }


}
